package com.example.demo.Service;

import com.example.demo.Mapper.HomePageMapper;
import com.example.demo.Pojo.ProductDTO;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//返回主页商品初始化渲染的数据
@Service
public class HomePageServiceImpl implements HomePageService {

    @Resource
    HomePageMapper homePageMapper;

    @Override
    public List<ProductDTO> ProductShow() {

        List<ProductDTO> productDTOList = homePageMapper.show();

        return productDTOList;
    }
}
